package com.zwl.buildsrc

object DependencyConfig {
    object Version {
        const val OkHttp = "4.9.0"                          // OkHttp
        const val OkHttpInterceptorLogging = "4.9.1"        // OkHttp 请求Log拦截器

        const val EventBus = "3.2.0"                        // 事件总线

        const val Retrofit = "2.9.0"                        // Retrofit
        const val RetrofitConverterGson = "2.9.0"           // Retrofit Gson 转换器
        const val RetrofitConverterScalars = "2.9.0"           // Retrofit String 转换器

        const val Lifecycle = "2.4.1"                       // Lifecycle
        const val Hilt = "2.44"                             // DI框架-Hilt

        const val ActivityKtx = "1.5.1"
        const val Room = "2.6.0"

        const val ARoute = "1.5.2"                          // 阿里路由
        const val ARouteCompiler = "1.5.2"                  // 阿里路由 APT
        const val XLog = "1.11.1"                          // xlog

        const val detektVersion = "1.23.7"
        const val permissionx= "1.8.1"                      // 权限X
    }

    object GitHub {
        const val OkHttp = "com.squareup.okhttp3:okhttp:${Version.OkHttp}"
        const val OkHttpInterceptorLogging =  "com.squareup.okhttp3:logging-interceptor:${Version.OkHttpInterceptorLogging}"// OkHttp 请求Log拦截器

        const val EventBus = "org.greenrobot:eventbus:${Version.EventBus}"
        const val EventBusAPT = "org.greenrobot:eventbus-annotation-processor:${Version.EventBus}"

        const val Retrofit = "com.squareup.retrofit2:retrofit:${Version.Retrofit}"
        const val RetrofitConverterGson =
            "com.squareup.retrofit2:converter-gson:${Version.RetrofitConverterGson}"
        const val RetrofitConverterScalars =
            "com.squareup.retrofit2:converter-scalars:${Version.RetrofitConverterScalars}"

        const val ARoute = "com.alibaba:arouter-api:${Version.ARoute}"
        const val ARouteCompiler = "com.alibaba:arouter-compiler:${Version.ARouteCompiler}"
        const val detekt_gradle_plugin =
            "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${Version.detektVersion}"
        const val Permissionx = "com.guolindev.permissionx:permissionx:${Version.permissionx}"
        const val XLog = "com.elvishew:xlog:${Version.XLog}"
    }

    object JetPack{
        const val ViewModel = "androidx.lifecycle:lifecycle-viewmodel-ktx:${Version.Lifecycle}"
        const val ViewModelSavedState =
            "androidx.lifecycle:lifecycle-viewmodel-savedstate:${Version.Lifecycle}"

        const val HiltCore = "com.google.dagger:hilt-android:${Version.Hilt}"
        const val HiltApt = "com.google.dagger:hilt-compiler:${Version.Hilt}"
    }

    object AndroidX{
        const val ActivityKtx = "androidx.activity:activity-ktx:${Version.ActivityKtx}"
        const val Room = "androidx.room:room-runtime:${Version.Room}"
        const val RoomCompiler = "androidx.room:room-compiler:${Version.Room}"
        const val RoomKtx = "androidx.room:room-ktx:${Version.Room}"

    }
}